home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_351 / pdc / libsrc.lzh / LibSrc / SysIO / globals.c < prev    next >
C/C++ Source or Header  |  1990-04-07  |  2KB  |  53 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this 
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /* globals.c
  18.  * These are the globals brought into a program that uses the PDC scanned
  19.  * libraries and runtime environment.
  20.  */
  21.  
  22. #include <stdio.h>
  23. #include <fcntl.h>
  24.  
  25. void *IconBase = 0;
  26.  
  27. /* Ptrs to a function to close open files and one to free memory upon exit().
  28.  */
  29.  
  30. void (*_fcloseall)();        /* Function to close all open files */
  31. void (*_freeall)();        /* Function to free all (m)alloc'd memory */
  32.  
  33. int _argc = 0;
  34. int _argBufSize = 0;
  35. char **_argv = 0;
  36. char *_argBuf = 0;
  37.  
  38. int errno = 0;
  39.  
  40. short _numdev = OPEN_MAX;    /* The number of entries in _devtab */
  41. struct _device *_devtab = NULL;    /* The device table must be malloc'd! */
  42.  
  43. FILE *stdin;
  44. FILE *stdout;
  45. FILE *stderr;
  46.  
  47. FILE _fdevtab[4] = {
  48.     { &_fdevtab[1], 0L, NULL, NULL, 0L, NULL, 0, 0, 0 },
  49.     { &_fdevtab[2], 0L, NULL, NULL, 0L, NULL, 0, 0, 0 },
  50.     { &_fdevtab[3], 0L, NULL, NULL, 0L, NULL, 0, 0, 0 },
  51.     {         NULL, 0L, NULL, NULL, 0L, NULL, 0, 0, 0 }
  52. };
  53.